import Vue from 'vue'
import Vuex from 'vuex'

import actions from './actions'
import mutations from './mutations'
import getters from './getters'

Vue.use(Vuex)

const state = {
  token: '', //用户的令牌
  carList: [], //购物车里的商品数组
}

const store = new Vuex.Store({
  state,
  mutations,
  actions,
  getters,
  modules: {
  }
})

export default store